{include file="header.tpl" title="Userlimit"}
<table border="0">
<tr>
<td nowrap="nowrap">
{$away}
</td>
</tr>
</table>
<form action="" method="post" target="_self" name="position">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28%">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td width="72%" colspan="3" align="right" nowrap="nowrap">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
  	<td nowrap="nowrap">{$lbl_maposition}</td>
    <td colspan="3" align="left" style="color:#FF0000;"> <input name="LEVELID" id="LEVELID" type="text" style="background:{$colorLEVELID}" value="{$LEVELID}" maxlength="10"/> 
    *<input type="button" onclick="mywindow = window.open('position_id.php', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findmicro" id="replacement_binoculars" value="     "> </td>
  </tr>  
	<tr>
	<td nowrap="nowrap">{$lbl_macurrcode}</td>
    <td colspan="3" align="left">
	<!--<select name="Curcode" id="Curcode" size="1" {if $doaction eq 'maintain'}disabled="disabled"{/if}>
	-->
	<select name="Curcode" id="Curcode" size="1" style="background:{$colorCurcode}">
		{foreach from=$CURCODE item=curr}
			<option value="{$curr}" {if $curr eq $activeCURCODE} selected="selected" {/if} >{$curr}</option>					
		{/foreach}
	</select><input name="activeCURCODE" type="hidden" id="activeCURCODE" value="{$activeCURCODE}"/></td>
	</tr>
	<tr>
	<td nowrap="nowrap">{$lbl_limit}</td>
    <td align="left" colspan="3"><input name="limit" id="limit" type="text" style="background:{$colorlimit}" value="{$limit}" size="33" maxlength="20" onkeypress="return numberOnly(event);" class="textright" onblur="formatNumber2(this,this.value,18,2)"/></td>	
	</tr>	
	<tr>
	<td align="left">{$lbl_RMlimit}</td>
	<td align="left" colspan="3"><input name="RMlimit" id="RMlimit" type="text" style="background:{$colorRMlimit}" value="{$RMlimit}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
	</tr>
	
	<tr>
	<td align="left">{$lbl_LimitGL1Seq}</td>
	<td align="left" colspan="3"><input name="LimitGL1Seq" id="LimitGL1Seq" type="text" style="background:{$colorLimitGL1Seq}" value="{$LimitGL1Seq}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
	</tr>
	
	<tr>
	<td align="left">{$lbl_LimitGLTotal}</td>
	<td align="left" colspan="3"><input name="LimitGLTotal" id="LimitGLTotal" type="text" style="background:{$colorLimitGLTotal}" value="{$LimitGLTotal}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
	</tr>
	
    <tr>
      <td>{$lbl_TRLIMIT}</td>
      <td><input name="TRLIMIT" id="TRLIMIT" type="text" style="background:{$colorTRLIMIT}" value="{$TRLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_BGLIMIT}</td>
      <td><input name="BGLIMIT" id="BGLIMIT" type="text" style="background:{$colorBGLIMIT}" value="{$BGLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_ELLIMIT}</td>
      <td><input name="ELLIMIT" id="ELLIMIT" type="text" style="background:{$colorELLIMIT}" value="{$ELLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_OBLIMIT}</td>
      <td><input name="OBLIMIT" id="OBLIMIT" type="text" style="background:{$colorOBLIMIT}" value="{$OBLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_LCLIMIT}</td>
      <td><input name="LCLIMIT" id="LCLIMIT" type="text" style="background:{$colorLCLIMIT}" value="{$LCLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_SGLIMIT}</td>
      <td><input name="SGLIMIT" id="SGLIMIT" type="text" style="background:{$colorSGLIMIT}" value="{$SGLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_IBLIMIT}</td>
      <td><input name="IBLIMIT" id="IBLIMIT" type="text" style="background:{$colorIBLIMIT}" value="{$IBLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_IRLIMIT}</td>
      <td><input name="IRLIMIT" id="IRLIMIT" type="text" style="background:{$colorIBLIMIT}" value="{$IRLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur= "formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_ORLIMIT}</td>
      <td><input name="ORLIMIT" id="ORLIMIT" type="text" style="background:{$colorIBLIMIT}" value="{$ORLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);"onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_TFLIMIT}</td>
      <td><input name="TFLIMIT" id="TFLIMIT" type="hidden" style="background:{$colorTFLIMIT}" value="{$TFLIMIT}" size="33" maxlength="20" onkeypress="return numberOnly(event);" onblur="formatNumber2(this,this.value,18,2);" class="textright"/></td>
    </tr>
    <tr>
      <td>{$lbl_ODLIMIT}</td>
      <td><input name="ODLIMIT" id="ODLIMIT" type="hidden" value="{$ODLIMIT}" size="20" maxlength="20" onkeyup="allowOnlyFloatingPointNumbers(this,this.value);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"  onblur="round_Number('ODLIMIT');formatNumber2(this,this.value,18,2);formatVND('ODLIMIT');" class="textright" style="width:200px;"/></td>
    </tr>
    <tr>
      <td>{$lbl_LNLIMIT}</td>
      <td><input name="LNLIMIT" id="LNLIMIT" type="hidden" value="{$LNLIMIT}" size="20" maxlength="20" onkeyup="allowOnlyFloatingPointNumbers(this,this.value);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"  onblur="round_Number('LNLIMIT');formatNumber2(this,this.value,18,2);formatVND('LNLIMIT');" class="textright" style="width:200px;"/></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
	  <td>&nbsp;</td>
    </tr>
    <tr>
<td colspan="4">
<p></p>
<p></p></td>
</tr>
<tr>
<td colspan="4" align="right">
  
  <input type="submit" name="capnhat" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td>
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
